<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>相对定位</title>
		<style>
			.one {
				position: relative;
				top: 100px;
				left: 100px;
				width: 300px;
				height: 300px;
				background-color: purple;
			}
			.two {
				width: 300px;
				height: 300px;
				background-color: blue;
			}
		</style>
	</head>
	<body>
		<div class="one"></div>
		<div class="two"></div>
	</body>
</html>